package net.thermetics.fx.controllers;

import net.thermetics.fx.auth.UserAuth;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public abstract class AbstractController {
	protected UserAuth currentUser;

	@Autowired
	@Qualifier("currentUser")
	public void setCurrentUser(UserAuth currentUser) {
		this.currentUser = currentUser;
	}
	
	public UserAuth getCurrentAuth() {
		return currentUser;
	}
}
